package com.dnb.webmash.playmaker.shared;

import java.util.ArrayList;
import java.util.Date;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class PlayerConfig implements IsSerializable {
	@Persistent
	protected Date createDate;
	@Persistent
	protected String owner;
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    protected String encodedKey;
	@Persistent
	protected PlayerType playerType;
	@Persistent
	protected ArrayList<Option> options;
	public String getOwner() {
		return owner;
	}
	public void setOwner(String owner) {
		this.owner = owner;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public String getEncodedKey() {
		return encodedKey;
	}
	public PlayerType getPlayerType() {
		return playerType;
	}
	public ArrayList<Option> getOptions() {
		return options;
	}
}
